﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Hongapo_Common;

public partial class sysadmin_Mall_malltypeadd : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        if (!string.IsNullOrEmpty(this.txtType.Text.Trim()))
        {
            Hongapo_Services.Mall.MallType bll = new Hongapo_Services.Mall.MallType();
            Hongapo_Model.Mall.MallType model = new Hongapo_Model.Mall.MallType();
            model.ID = bll.GetMaxId();
            model.Name = this.txtType.Text.Trim();
            model.Remark = this.txtRemark.Text.Trim();
            model.Sort = Hongapo_Common.TypeConvert.ToInt32(this.txtsort.Text);
            bll.Add(model);
            this.Show("提交成功！", "malltypeadd.aspx");
        }
        else
        {
            this.Show("类型名称不能为空！");
        }

    }
}
